package cn.bughub.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 权限实体
 *
 * @author zwj
 * @date 2024-09-25
 */
@Data
@TableName("permissions")
public class PermissionsEntity {
    
    @TableId(type = IdType.ASSIGN_ID, value = "permission_id")
    private Long permissionId;
    
    @TableField("permission_name")
    private String permissionName;
    
    @TableField("permission_code")
    private String permissionCode;
    
    @TableField("permission_type")
    private String permissionType;
    
    @TableField("parent_id")
    private Long parentId;
    
    @TableField("path")
    private String path;
    
    @TableField("redirect")
    private String redirect;
    
    @TableField("icon")
    private String icon;
    
    @TableField("component")
    private String component;
    
    @TableField("layout")
    private String layout;
    
    @TableField("keep_alive")
    private Boolean keepAlive;
    
    @TableField("method")
    private String method;
    
    @TableField("description")
    private String description;
    
    @TableField("show")
    private Boolean show;
    
    @TableField("enable")
    private Boolean enable;
    
    @TableField("order")
    private Integer order;
    
    @TableField("delete_flag")
    private Boolean deleteFlag;
    
    @TableField("created_by")
    private Long createdBy;
    
    @TableField("created_time")
    private LocalDateTime createdTime;
    
    @TableField("updated_by")
    private Long updatedBy;
    
    @TableField("updated_time")
    private LocalDateTime updatedTime;
}
